﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Data;


namespace HA.ModFlow.Controls.Windows
{
   public class ListSCConvertor:IValueConverter
    {


        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            List<double> lst = (List<double>)value;

            if (lst.Count > 0)
            {
                return lst[0];

            }
            else
            {
                return "";
            }

        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
           
        }


    }
}
